﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.MessageBoard.MessageList" %>

<%=_framePage.GetPagerFormHtml(Request.RawUrl)%>

<form id="pageForm" method="post" runat="Server" class="pageForm" 
    onsubmit="return navTabSearch(this);" action="/SystemManage/Basics/MessageBoard/MessageList.aspx">
<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
			    <span>标题&nbsp;</span>
				<asp:TextBox ID="tb_search_title" runat="server"></asp:TextBox>&nbsp;&nbsp;
			</li>
			<li>
			    <span>内容&nbsp;</span>
				<asp:TextBox ID="tb_search_content" runat="server"></asp:TextBox>&nbsp;&nbsp;
			</li>
		</ul>
	    <div class="subBar">
			<ul>
			<li>
			    <div class="buttonActive"><div class="buttonContent"><button type="submit">&nbsp;查&nbsp;询&nbsp;</button></div></div>
			</li>
			</ul>
	    </div>
	</div>
</div>

<div class="pageContent">
   	<div class="panelBar">
		<ul class="toolBar">
            <li><a class="delete" href="/SystemManage/Basics/MessageBoard/MessageDelete.aspx?ajax=dels" target="selectedTodo" title="请确定要删除"><span>删除勾选</span></a></li>
		</ul>
	</div>
	<div class="tableList" layoutH="116">
	<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc">
	    <thead>
			<tr>
                <th width="22px"><input type="checkbox" group="ids" class="checkboxCtrl"/></th>
				<th width="5%" style="display: none">编号</th>
				<th width="15%">标题</th>
				<th width="25%">留言内容</th>
				<th width="25%">留言回复</th>
				<th width="12%">留言时间</th>
				<th width="8%" align="center">留言状态</th>
				<th width="15%">操作</th>
			</tr>
		</thead>
		<tbody>
            <asp:repeater runat="server" id="gv_default">
                <ItemTemplate>
			    <tr target="uid" rel=<%# Eval("Id")%>>
                    <td><input name="ids" value="<%#Eval("Id")%>" type="checkbox"/></td>
				    <td style="display: none"><span><%# Eval("Id")%></span></td>
<%--                    <td>
                        <span style="font-weight: bold">标题：</span><%# Eval("Title") %></br>
                        <span style="font-weight: bold">留言内容：</span><%# Eval("Content") %></br>
                        <span style="font-weight: bold">留言回复：</span>
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        <%# GetMessageReply((int)Eval("Id"))%>
                        </table>
                    </td>    --%>
                    <td><%# Eval("Title")%></td>
                    <td><%# Eval("Content")%></td>
                    <td><%# GetMessageReply((int)Eval("Id"))%></td>
				    <td><%# Eval("Addtime") %></td>
				    <td><%# Eval("Status") %></td>
				    <td> 
				        <a href="/SystemManage/Basics/MessageBoard/EditMessage.aspx?uid=<%# Eval("Id")%>" target="dialog" title="留言板-留言" rel="editmsgborad"mask=true>编辑留言</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/MessageBoard/EditReply.aspx?uid=<%# Eval("Id")%>" target="dialog" title="留言板-回复" rel="replymsgborad"mask=true>编辑回复</a>&nbsp;&nbsp;
				        <a href="/SystemManage/Basics/MessageBoard/MessageDelete.aspx?uid=<%# Eval("Id")%>" target="ajaxTodo" title="请确定要删除">删除</a>
				    </td>
			    </tr>
                </ItemTemplate>
            </asp:repeater>
		</tbody>
	</table>
	</div>
	
     <%= _framePage.GetPagerContentHtml()%>
</div>
</form>